/*
 * cmdlineproc.h
 *
 *  Created on: Nov 26, 2011
 *      Author: benoybose
 */

#ifndef HXMDLINE_H_
#define HXMDLINE_H_

#include <argtable2.h>

typedef struct {
	struct arg_file* input_file;
	struct arg_str* output_format;
	struct arg_file* output_file;
	struct arg_file* library_file;
	struct arg_lit* help;
	struct arg_lit* version;
	struct arg_end* end;
} hxcmdline_options;

hxcmdline_options* hxcmdline_create_options();
int hxcmdline_parse(int argc, char** argv, hxcmdline_options* options);
int hxcmdline_count_inputfiles(hxcmdline_options* options);
char* hxcmdline_get_inputfile(hxcmdline_options* options, int index);
char* hxcmdline_get_inputfile_ext(hxcmdline_options* options, int index);


#endif /* HXMDLINE_H_ */
